<?php


namespace App\Shuixing\Controllers;


use App\Admin\Repositories\WxMenu;
use App\Models\WxClause;

class ClauseController
{
    public function index($id)
    {
        global $__MINI_GLOBAL_IS_ADMIN_SUPER__;
        $__MINI_GLOBAL_IS_ADMIN_SUPER__ = false;
        $data = WxClause::where('id', $id)->first(['content']);
        if(_empty_($data)){
            return '<h4 style="text-align: center;margin-top: 100px;">404 无记录</h4>';
        }

        return view('shuixing/clause', ['content' => $data['content']]);
    }
}
